<%--
  Created by IntelliJ IDEA.
  User: XW
  Date: 2022/4/24
  Time: 15:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>用户信息</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>性别</th>
            <th>地址</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${requestScope.users}" var="i">
            <tr>
                <td>${i.id}</td>
                <td>${i.userName}</td>
                <td>${i.password}</td>
                <td>${i.gender}</td>
                <td>${i.addr}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <a href="${pageContext.request.contextPath}/index.jsp">返回首页</a>
</div>
</body>
</html>
